package com.mingqijia.gassafety.webserver.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author zhangfei
 * @version 1.0.0
 * @ClassName SaveDeviceRequest.java
 * @Description
 * @createTime 2022年02月21日
 */
@Data
@ApiModel( "新增设备信息")
public class SaveDeviceRequest {

    @Size(min = 15, max = 15, message = "请输入15位的数字")
    @NotBlank(message = "设备号不能为空")
    @ApiModelProperty("设备号")
    private String imei;

    @ApiModelProperty("设备厂商")
    @NotBlank(message = "设备厂商不能为空")
    private String equipmentManufacturer;

    @ApiModelProperty("设备类型")
    @NotBlank(message = "设备类型不能为空")
    private String equipmentType;

    @ApiModelProperty("设备型号")
    @NotBlank(message = "设备型号不能为空")
    @Size(min = 1, max = 50, message = "请输入1-50位的数字")
    private String equipmentModel;
    //检测类型
    @ApiModelProperty("检测类型")
    private String detectionType;

    @ApiModelProperty("运营商")
    @NotBlank(message = "运营商不能为空")
    private String operators;
    //通讯方式
    @ApiModelProperty("通讯方式")
    private String communicationMode;

    @ApiModelProperty("有效时间，数字")
    private int validity;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("回路对应点位数")
    //回路对应点位数
    private String loopPoint;

    //ICCID
    @ApiModelProperty("ICCID")
    @NotBlank(message = "ICCID不能为空")
    @Size(min = 20, max = 20, message = "请输入20位ICCID")
    private String iccid;

    @ApiModelProperty("protocol_version")
    @NotBlank(message = "协议版本不能为空")
    private String protocolVersion;


}
